<template>
  <div>
    <h1>测试题</h1>
    <Subject v-for="(item,index) in arr" :key="index" :index="index" @result="resultPar"/>
    <Judge v-for="(item,index) in arr" :key="index" :res="item" :index="index"/>
  </div>
</template>

<script>
import Subject from './components/Subject.vue'
import Judge from './components/Judge.vue'
export default {
  components:{
    Subject,
    Judge,
  },
  data(){
    return {
      arr:['未完成','未完成','未完成','未完成','未完成'],
    }
  },
  methods:{
    resultPar(res,i){
      this.$set(this.arr,i,res)
    }
  },
  
}
</script>

<style>

</style>